package ComputerWork;

public class Computer implements ShowInfo{
	private CPU cpu;
	private RAM ram;
	private Disk disk;
	private Board board;
	
	public Computer(CPU cpu, RAM ram, Disk disk, Board board) {
		this.cpu = cpu;
		this.ram = ram;
		this.disk = disk;
		this.board = board;
	}

	public CPU getCPU() {
		return cpu;
	}

	public RAM getRAM() {
		return ram;
	}

	public Disk getDisk() {
		return disk;
	}

	public Board getBoard() {
		return board;
	}
	
	public void show() {
		cpu.work(); cpu.digital();
		ram.work(); ram.digital();
		disk.work(); disk.digital();
		board.work(); board.digital();
	}
}
